package com.ywz.project.base.system.service.impl;

import com.ywz.project.base.system.entity.TSysPermission;
import com.ywz.project.base.system.mapper.TSysPermissionMapper;
import com.ywz.project.base.system.service.TSysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author ywz
 * @since 2024-10-27
 */
@Service
public class TSysPermissionServiceImpl extends ServiceImpl<TSysPermissionMapper, TSysPermission> implements TSysPermissionService {
    @Resource
    private TSysPermissionMapper tSysPermissionMapper;
    @Override
    public List<TSysPermission> getPermissionListByRoleIds(List<Integer> roleIds) {
        return tSysPermissionMapper.getPermissionListByRoleIds(roleIds);
    }
}
